From ac185e00cab00178a914015ce5ff03c4961bb649 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 11 Dec 2000 02:20:24 +0000 Subject: [PATCH] (displayed_window_lines): Don't round up when converting empty space at bottom to lines. --- src/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.c b/src/window.c index 223ef072386..5a54f46091c 100644 --- a/src/window.c +++ b/src/window.c @@ -4479,7 +4479,7 @@ displayed_window_lines (w) { struct frame *f = XFRAME (w->frame); int rest = height - bottom_y; - int lines = (rest + CANON_Y_UNIT (f) - 1) / CANON_Y_UNIT (f); + int lines = rest / CANON_Y_UNIT (f); it.vpos += lines; } -- 2.30.2